home *** CD-ROM | disk | FTP | other *** search
/ Graphics Plus / Graphics Plus.iso / general / fractal / kaos.lha / complib / ivector.c < prev    next >
Encoding:
Text File  |  1990-01-26  |  234 b   |  13 lines

  1. /*
  2. ### allocate memory for an integer vector ###
  3. */
  4.  
  5. int *ivector(nl,nh)
  6. int nl,nh;
  7. {
  8.     int *v;
  9.     v = (int *)malloc((unsigned) (nh - nl + 1) * sizeof(int));
  10.     if (!v) system_mess_proc(1,"ivector: allocation failure");
  11.     return(v - nl);
  12. }
  13.